package com.gk.carshopsys.dao;

import com.gk.carshopsys.pojo.Car;
import com.gk.carshopsys.pojo.Cust;
import com.gk.carshopsys.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface CarDao {


    //批量新增库存
    public int addCarByList(List<Car> list);

    //根据修改库存
    public int updateQuantityById(Car car);

    //根据id查询库存
    public Long findQuantityById(Long id);

    //查询汽车
    public List<Car> findCar(@Param("car") Car car, @Param("low_price") Long low_price, @Param("hight_price") Long hight_price);

    //查询汽车
    public List<Car> findCarId(Long id);

    //添加汽车
    public int addCar(Car car);

    //更新汽车
    public int updateCar(Car car);

    //删除汽车
    public int delCar(List<Integer> car);

}
